<template>
  <div>
    <a-result
      status="success"
      title="欢迎登录电力通信工作票管理系统！"
      sub-title=""
    >
      <template #extra>
        <a-button key="console" type="primary" @click="gotoAddPage">去创建工作票</a-button>
        <a-button key="buy" @click="gotoWorkTicketPage">工作票管理</a-button>
      </template>
    </a-result>
  </div>
</template>
<script>
export default {
  components: {
  },
  methods: {
    gotoAddPage () {
      this.$router.push('/work-ticket/work-ticket/form')
    },
    gotoWorkTicketPage () {
      this.$router.push('/work-ticket/work-ticket')
    }
  }
}
</script>
